package com.kusen.spring.constructor;

import org.springframework.stereotype.Component;

/**
 * 模拟练习循环依赖构造器依赖,模拟类B
 */
@Component
public class ServiceB {
    private ServiceA serviceA;

    /**
     * 构造器注入A
     *
     * @param serviceA
     */
    public ServiceB(ServiceA serviceA) {
        this.serviceA = serviceA;
    }
}
